package com.certification.service;


import com.certification.dto.CertificationDTO;
import com.certification.entity.Certification;
import com.certification.vo.CertificationVO;
import com.certification.vo.ResponseMessage;

import java.util.List;

/**
 * @author copa
 * @createDate 2022-03-28 22:14
 * @function
 */
public interface CertificationService {
    ResponseMessage<String> addCert(CertificationDTO certificationDTO, Integer userId);

    ResponseMessage<CertificationVO> getCert(Integer certStage, Integer userId);

    Certification getCertByCertStageAndPrincipalId(Integer certStage, Integer principalId);

    Certification getOneCertByCertStageAndPrincipalId(Integer certStage, Integer principalId, Integer certId, Integer certStatus);

    ResponseMessage<String> putCert(CertificationDTO certificationDTO, Integer userId);

    ResponseMessage<Certification> getCertDetail(Integer certId, Integer userId);

    ResponseMessage<List<Certification>> certList();

    ResponseMessage<Certification> getCertDetailAdmin(Integer certId);

    ResponseMessage<String> putCertAdmin(Integer certId, Integer status, String remark, Integer certStage);

    Integer put(Certification cert);

    ResponseMessage<String> certResult(Integer userId);
}
